<?php
//$_GET;
//var_dump($_POST);
require "connect.php";

$type=$_POST['type'];
$pay=$_POST['pay'];
$create_time=date('Y-m-d H:i:s',time()+7*3600);



//3、增加
$sql="INSERT INTO adds(type,pay,create_time) VALUES ('$type','$pay','$create_time')";
//var_dump($sql);
$count=$pdo->exec($sql);
if($count>=1){
    echo "<script>alert('添加成功！');location.href='../record.html'</script>>";
}
//var_dump($count);
//18:25
